package com.longshihan.module_toutiao.dagger.module;

import com.longshihan.module_toutiao.mvp.contract.TodayGankContract;
import com.longshihan.mvplh.dagger.scope.FragmentScope;

import dagger.Module;
import dagger.Provides;

/**
 * @author longshihan
 * @time 2017/9/11 13:53
 * @des
 */
@Module
public class TodayModule {
    private TodayGankContract.View view;

    /**
     * 构建UserModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     * @param view
     */
    public TodayModule(TodayGankContract.View view) {
        this.view = view;
    }

    @FragmentScope
    @Provides
    TodayGankContract.View provideUserView(){
        return this.view;
    }
}
